package cn.iocoder.yudao.module.erp.controller.admin.finance;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.erp.controller.admin.finance.vo.cashFlow.ErpFinanceCashFlowVO;
import cn.iocoder.yudao.module.erp.service.finance.CashFlowService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

import java.util.List;

import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

@Tag(name = "管理后台 - ERP 现金流")
@RestController
@RequestMapping("/erp/finance-cashFlow")
@Validated
public class ErpFinanceCashFlowController {
    @Resource
    private CashFlowService cashFlowService;

    @GetMapping("/get")
    @Operation(summary = "查看现金流")
    public CommonResult<List<ErpFinanceCashFlowVO>> createFinancePayment() {
        return success(cashFlowService.getCashFlowList());
    }
}
